﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Online.aspx.cs" Inherits="Weixin.Web.Online" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"" />
    <title>中国税务咨询师</title>
    <link rel="stylesheet" href="Styles/jquery.mobile-1.3.2.min.css" />
    <script type="text/javascript" src="Scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery.mobile-1.3.2.min.js"></script>
    <link rel="stylesheet" href="Styles/css.css" />
    <script type="text/javascript">
        function Chk() {
            $(".err").each(function () {
                $(this).removeClass("err");
            })

            if ($("#txtCourseName").val() == "") {
                $("#txtCourseName").addClass("err");
                return false;
            }
            if ($("#txtName").val() == "") {
                $("#txtName").addClass("err");
                return false;
            }
            if ($("#txtMobile").val() == "") {
                $("#txtMobile").addClass("err");
                return false;
            }
            if ($("#txtEmail").val() == "") {
                $("#txtEmail").addClass("err");
                return false;
            }
            if ($("#txtCompany").val() == "") {
                $("#txtCompany").addClass("err");
                return false;
            }

            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" action="?act=save">
    <div data-role="page">
        <div class="content" data-role="content">
            <div>
                <span class="hotline">咨询热线:400-677-1077</span><img src="images/logo.jpg" />
            </div>
            <div class="sep"></div>
            <h3>
                在线报名</h3>
            <div class="nav"><a href="###">中国税务咨询师</a></div>
            <p>
            <label for="txtCourse">课程名：</label>
            <input type="text" placeholder="请输入课程名" name="txtCourseName" id="txtCourseName" runat="server">
                <%if (Request["cid"] == "156")
                  {%>
                <label for="ddlDate">
                    参会时间：</label>
                <select id="ddlDate" name="ddlDate">
                    <option value="2015-12-24">2015-12-24</option>
                    <option value="2015-12-25">2015-12-25</option>
                    <option value="2015-12-24,2015-12-25">两天都参加</option>
                </select>
                <%} %>
            <label for="txtName">姓名：</label>
            <input type="text" placeholder="请输入姓名" name="txtName" id="txtName">
            <label for="txtMobile">手机：</label>
            <input type="text" placeholder="请输入手机号" name="txtMobile" id="txtMobile">
            <label for="txtEmail">邮箱：</label>
            <input type="text" placeholder="请输入邮箱地址" name="txtEmail" id="txtEmail">
            <label for="txtCompany">公司名称：</label>
            <input type="text" placeholder="请输入公司名称" name="txtCompany" id="txtCompany">
            <%if (Request["cid"] == "156")
              { %>
            <label for="txtWeixin">微信：</label>
            <input type="text" placeholder="请输入微信号" name="txtWeixin" id="txtWeixin">
            <%}
              else
              {%>
            <label for="txtCompany">推荐人：</label>
            <input type="text" placeholder="请输入推荐人手机或微信号" name="txtReferee" id="txtReferee">
            <%} %>
                <input id="hidCourseId" name="hidCourseId" type="hidden" runat="server" />
            <button data-theme="b" onclick="return Chk();">提交</button>
            </p>
        </div>
    </div>
    </form>
</body>
</html>
